package com.aizuda.boot.modules.business.permission.mapper;

import com.aizuda.boot.modules.business.permission.domain.entity.RoleEntity;
import com.aizuda.boot.modules.business.permission.domain.request.PageRoleVO;
import com.aizuda.boot.modules.business.permission.domain.response.PageRoleResponseVO;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author duanyao
 * @date 2022/12/05 14:07
 * @description: 角色
 */
@Repository
public interface RoleMapper extends BaseMapper<RoleEntity> {


    /**
     * 获取角色列表
     *
     * @param tenantKey
     * @param pageRoleVO
     * @param roleIdList
     * @return
     */
    List<PageRoleResponseVO> pageRole(String tenantKey, @Param("vo") PageRoleVO pageRoleVO, @Param("list") List<Long> roleIdList);
}
